using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AceEngineering.SPM.SPMCustomDataEntity;
using Microsoft.AceEngineering.SPM.SPMDataLayer;
using System.Data;

namespace Microsoft.AceEngineering.SPM.SPMBusinessLayer
{
    public class OrganizationBL
    {
        public static List<OrganizationCDE> GetChildOrgs(int parentID)
        {
            return OrganizationDL.GetChildOrgs(parentID);
        }

        public static DataSet dsLoadDataSet(string strStoredProc)
        {
            return WTRIAssessmentDL.dsLoadDataSet(strStoredProc);
        }

        public static OrganizationCDE GetOrgByOrgID(int orgID)
        {
            return OrganizationDL.GetOrgByOrgID(orgID);
        }

        public static void UpdateOrgByOrgID(int orgID, string orgName, int parentOrgID, string modifiedBy)
        {
            OrganizationDL.UpdateOrgByOrgID(orgID, orgName, parentOrgID, modifiedBy);
        }

        public static void DeleteOrgByOrgID(int orgID)
        {
            OrganizationDL.DeleteOrgByOrgID(orgID);
        }
    }
}